package tt.dz.egobus.servicemanager.core.task;

import tt.dz.egobus.servicemanager.bean.IdAlgorithm;

/**
 * @author Anson
 * @date 17-8-15
 * @name 动态任务key生成器
 * @since 1.0.6
 */
public class DynamicTaskKeyGeneral implements IdAlgorithm {

    private String jobName;

    private String triggerName;


    public DynamicTaskKeyGeneral() {
    }

    public DynamicTaskKeyGeneral(String jobName, String triggerName) {
        this.jobName = jobName;
        this.triggerName = triggerName;
    }

    @Override
    public String id() {
        return this.jobName + this.triggerName;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getTriggerName() {
        return triggerName;
    }

    public void setTriggerName(String triggerName) {
        this.triggerName = triggerName;
    }
}
